package com.domcer.ultra.menu.common.utils;

/**
 * @Author hang.wang
 * @Date 2025/1/31 11:00
 */
public class InventoryUtil {

    /**
     * calculate inventory slot
     * @param x show for user, range: 1-9
     * @param y show for user, range: 1-6
     * @return inventory slot, range: 0-63
     */
    public static int slot(int x, int y) {
        return (x - 1) + (y - 1) * 9;
    }
}
